package router

import (
	"NewsHub/handler"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("/article_list", handler.ArticleList)
	r.GET("/login", handler.Login)
	r.POST("/like", handler.Like)
	return r
}
